package personal.model.service;

import java.sql.SQLException;
import java.util.List;

import personal.model.dao.PersonalManagementDao;
import personal.model.vo.AdminVO;
import personal.model.vo.DeptVO;
import personal.model.vo.EmpVO;
import personal.model.vo.GradeVO;

public class PersonalManagementServiceImpl implements PersonalManagementService{
	private PersonalManagementDao personalManagementDao;
	@Override
	public void setPersonalManagementDao(PersonalManagementDao personalManagementDao) {
		this.personalManagementDao = personalManagementDao;
	}
	@Override
	public List<DeptVO> selectDeptCode() throws SQLException {
		return personalManagementDao.selectDeptCode();
	}
	@Override
	public List<AdminVO> selectAdminCode() throws SQLException {
		return personalManagementDao.selectAdminCode();
	}
	@Override
	public List<GradeVO> selectGradeCode() throws SQLException {
		return personalManagementDao.selectGradeCode();
	}
	@Override
	public void insertPersonalCard(EmpVO empVO) throws SQLException {
		personalManagementDao.insertPersonalCard(empVO);
	}
	@Override
	public List<EmpVO> selectPersonalCardResult(String selectMethod, String selectValue) throws SQLException {
		return personalManagementDao.selectPersonalCardResult(selectMethod, selectValue);
	}
	@Override
	public void deletePersonalCard(int empNo) throws SQLException {
		personalManagementDao.deletePersonalCard(empNo);
	}
	@Override
	public EmpVO selectPersonalCardByEmpNo(int empNo) throws SQLException {
		return personalManagementDao.selectPersonalCardByEmpNo(empNo);
	}
	@Override
	public void updatePersonalCard(EmpVO empVO) throws SQLException {
		personalManagementDao.updatePersonalCard(empVO);
	}
}